package com.w.wx.service;

import com.alibaba.fastjson.JSONObject;
import com.w.wx.domain.Goods;
import com.w.wx.domain.Msg;
import com.w.wx.domain.UserDe;
import com.w.wx.domain.UserEr;

import java.util.ArrayList;
import java.util.HashMap;


public interface UserService {

   int setUserInfo(UserEr userinfo);

    UserEr getUserInfo(String openid);

    int updateUserInfo(UserDe userDetailInfo);

    UserDe getUserDeInfo(String openid);

    int addGoodInCar(String openid, Integer gid);

    ArrayList<Goods> getMyCarSimpleInfo(String openid);


    UserEr getErUserAndImage(String openid);

    ArrayList<UserEr> getAllUserSimInfo();

    ArrayList<Integer> getFavoritesByOpenid(String openid);

    int addGoodsInCar(JSONObject sums);

    Msg setUserCheckState(String openid, Integer state, String reason);

    Msg userCheckIsOk(String openid);

    Msg isRegister(String openid);
}
